<?php
namespace API\Controller;
use Think\Controller;
class RegisterController extends Controller {
	//注册接口
    public function reg(){

         $u_name = $_GET['u_name'];
         $u_password = $_GET['u_password'];
        $clubs = M('clubs');
        $data = $clubs -> order("cl_id")->select();
  if ($count > 0) {
            exit(json_encode(1)); //返回1表示注册失败
        } else {

           $data = $clubs ->add();
            exit(json_encode(0)); //返回0表示注册成功
        }

        
         echo "<br>";

    }
    

}
?>